package com.lu.gateway.service;

import com.lu.common.core.exception.CaptchaException;
import com.lu.common.core.web.domain.AjaxResult;

import java.io.IOException;

/**
 * @program LuCloud-RuoYi
 * @description: 验证码处理
 * @author: zhanglu
 * @create: 2020-07-01 19:50:00
 */
public interface ValidateCodeService {

    //创建验证码
    AjaxResult createCapcha() throws IOException, CaptchaException;

    //校验验证码
    void checkCapcha(String key, String value) throws CaptchaException;

}
